package com.wordpress.minhnvt1.simpleframework.domain;

import org.simpleframework.xml.Default;
import org.simpleframework.xml.DefaultType;
import org.simpleframework.xml.Root;

@Root
@Default(DefaultType.FIELD)
public class Address {
	private String street, code, city;
	public Address() {}
	public Address(String street, String code, String city) {
		this.street = street;
		this.code = code;
		this.city = city;
	}
	public String getStreet() {
        return street;
    }

    public String getCode() {
        return code;
    }

    public String getCity() {
        return city;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("Address");
        sb.append("{street='").append(street).append('\'');
        sb.append(", code='").append(code).append('\'');
        sb.append(", city='").append(city).append('\'');
        sb.append('}');
        return sb.toString();
    }
}

